package com.lanchetech.dao;
import java.util.List;

import com.lanchetech.entity.AnchorLike;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;

@Mapper
public interface AnchorLikeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(AnchorLike record);

    int insertSelective(AnchorLike record);

    AnchorLike selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(AnchorLike record);

    int updateByPrimaryKey(AnchorLike record);

    AnchorLike findOneByUserIdAndAnchorUserId(@Param("userId") Long userId, @Param("anchorUserId") Long anchorUserId);

    AnchorLike findOneByUserIdAndRoomId(@Param("userId")Long userId,@Param("roomId")Long roomId);

    List<AnchorLike> findAllByUserId(@Param("userId")Long userId);


}